From 7260c49e052216fa73187ee635a0ee8f50b98508 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Thu, 1 Mar 2007 11:08:49 +0000 Subject: [PATCH] Remove Xen workaround for HVM builder now that it's fixed Signed-off-by: Tim Deegan --- xen/arch/x86/domain.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c index 7c75b49101..a1e0950270 100644 --- a/xen/arch/x86/domain.c +++ b/xen/arch/x86/domain.c @@ -501,12 +501,9 @@ int arch_set_info_guest( unsigned long flags; int i, rc = 0, compat; - /* - * HVM domain builder always builds caller-bitsize vcpu context. - * The PV builder is smarter and builds the appropriate type of context for - * the target domain. So the compat check here differs in the two cases. - */ - compat = is_hvm_domain(d) ? IS_COMPAT(current->domain) : IS_COMPAT(d); + /* The context is a compat-mode one if the target domain is compat-mode; + * we expect the tools to DTRT even in compat-mode callers. */ + compat = IS_COMPAT(d); #ifdef CONFIG_COMPAT #define c(fld) (compat ? (c.cmp->fld) : (c.nat->fld)) -- 2.30.2